zabbix | 您所在的位置:网站首页 › zabbix mongodb监控 › zabbix |
基于zabbix3.2对mongodb的监控 脚本: calendar timegm time gmtime urllib.parse pymongo MongoClient, errors MongoDB(): (): .mongo_host = .mongo_port = .mongo_db = [, ] .mongo_user = urllib.parse.quote_plus() .mongo_password = urllib.parse.quote_plus() .__conn = .__dbnames = .__metrics = [] connect(): .__conn : .mongo_user : : .__conn = MongoClient(% (.mongo_host, .mongo_port)) errors.PyMongoError py_mongo_error: (% (py_mongo_error)) : : .__conn = MongoClient(% (.mongo_user, .mongo_password, .mongo_host, .mongo_port)) errors.PyMongoError py_mongo_error: (% (py_mongo_error)) add_metrics(, k, v): dict_metrics = {} dict_metrics[] = k dict_metrics[] = v .__metrics.append(dict_metrics) print_metrics(): metrics = .__metrics metric metrics: zabbix_item_key = (metric[]) zabbix_item_value = (metric[]) (+ zabbix_item_key + + zabbix_item_value) get_db_names(): .__conn : .connect() db_handler = .__conn[.mongo_db[]] master = db_handler.command()[] dict_metrics = {} dict_metrics[] = master: dict_metrics[] = db_names = .__conn.database_names() .__dbnames = db_names : dict_metrics[] = .__metrics.append(dict_metrics) get_mongo_db_lld(): .__dbnames : db_names = .get_db_names() : db_names = .__dbnames dict_metrics = {} db_list = [] dict_metrics[] = dict_metrics[] = {: db_list} db_names : db_name db_names: dict_lld_metric = {} dict_lld_metric[] = db_name db_list.append(dict_lld_metric) dict_metrics[] = {: db_list} .__metrics.insert(, dict_metrics) get_oplog(): .__conn : .connect() db_handler = .__conn[] coll = db_handler.oplog.rs op_first = (coll.find().sort(, ).limit()) op_last = (coll.find().sort(, -).limit()) op_first.count() > op_last.count() > : op_fst = (op_first.next())[].time op_last_st = op_last[][] op_lst = (op_last.next())[].time status = ((op_lst - op_fst), ) .add_metrics(, status) current_time = timegm(gmtime()) oplog = ((((op_last_st).split())[].split())[]) .add_metrics(, (current_time - oplog)) get_maintenance(): .__conn : .connect() db_handler = .__conn fsync_locked = (db_handler.is_locked) .add_metrics(, fsync_locked) : config = db_handler.admin.command(, ) connstring = (.mongo_host + + (.mongo_port)) i (, (config[][])): connstring config[][][i][]: priority = config[][][i][] hidden = (config[][][i][]) .add_metrics(, priority) .add_metrics(, hidden) errors.PyMongoError: () get_server_status_metrics(): .__conn : .connect() db_handler = .__conn[.mongo_db[]] ss = db_handler.command() .add_metrics(, ss[]) .add_metrics(, ss[][]) .add_metrics(, (ss[])) .add_metrics(, (ss[])) k, v ss[].items(): .add_metrics(+ k, v) k, v ss[].items(): .add_metrics(+ k, v) k [, , , ]: .add_metrics(+ k, ss[][k]) k, v ss[].items(): .add_metrics(+ k, v) k, v ss[].items(): .add_metrics(+ k, v) .add_metrics(, ss[][]) ss[][] == : .add_metrics(, ss[][] []) .add_metrics(, ss[][] []) .add_metrics(, ss[][] []) lock_total_time = ss[][] .add_metrics(, lock_total_time) k, v ss[][].items(): .add_metrics(+ k, v) k, v ss[][].items(): .add_metrics(+ k, v) get_db_stats_metrics(): .__conn : .connect() .__dbnames : .get_db_names() .__dbnames : mongo_db .__dbnames: db_handler = .__conn[mongo_db] dbs = db_handler.command() k, v dbs.items(): k [, , , , , , , , , , ]: .add_metrics(+ k + + mongo_db + , (v)) close(): .__conn : .__conn.close() __name__ == : mongodb = MongoDB() mongodb.get_db_names() mongodb.get_mongo_db_lld() mongodb.get_oplog() mongodb.get_maintenance() mongodb.get_server_status_metrics() mongodb.get_db_stats_metrics() mongodb.print_metrics() mongodb.close()#!/bin/bash get_MongoDB_metrics(){ python /usr/local/zabbix/scripts/zabbix-mongodb.py } # Send the results to zabbix server by using zabbix sender result=$(get_MongoDB_metrics | /usr/local/zabbix/bin/zabbix_sender -vv -c /usr/local/zabbix/conf/zabbix_agentd.conf -i - 2>&1) response=$(echo "$result" | awk -F ';' '$1 ~ /^info/ && match($1,/[0-9].*$/) {sum+=substr($1,RSTART,RLENGTH)} END {print sum}') if [ -n "$response" ]; then echo "$response" else echo "$result" fi 模版: 3.2 2017-08-14T15:50:26Z
Templates
Template MongoDB Template MongoDB
Templates
MongoDB
MongoDB::asserts::msg count 2
0
mongodb.asserts.msg 0 28 365 0 3
1
0 0
0
1
0 0
The number of message assertions raised since the MongoDB process started. Check the log file for more information about these messages. 0
MongoDB
MongoDB::asserts::regular count 2
0
mongodb.asserts.regular 0 28 365 0 3
1
0 0
0
1
0 0
The number of regular assertions raised since the MongoDB process started. Check the log file for more information about these messages. 0
MongoDB
MongoDB::asserts::rollovers count 2
0
mongodb.asserts.rollovers 0 28 365 0 3
1
0 0
0
1
0 0
The number of times that the rollover counters have rolled over since the last time the MongoDB process started. The counters will rollover to zero after 230 assertions. Use this value to provide context to the other values in the asserts data structure. 0
MongoDB
MongoDB::asserts::user count 2
0
mongodb.asserts.user 0 28 365 0 3
1
0 0
0
1
0 0
The number of “user asserts” that have occurred since the last time the MongogDB process started. These are errors that user may generate, such as out of disk space or duplicate key. You can prevent these assertions by fixing a problem with your application or deployment. Check the MongoDB log for more information. 0
MongoDB
MongoDB::asserts::warning count 2
0
mongodb.asserts.warning 0 28 365 0 3
1
0 0
0
1
0 0
The number of warnings raised since the MongoDB process started. Check the log file for more information about these warnings. 0
MongoDB
MongoDB::connection::connection available 2
0
mongodb.connection.available 0 28 365 0 3
0
0 0
0
1
0 0
The number of unused incoming connections available. Consider this value in combination with the value of connections.current to understand the connection load on the database, and the UNIX ulimit Settings document for more information about system thresholds on available connections. 0
MongoDB
MongoDB::connection::current connection 2
0
mongodb.connection.current 0 28 365 0 3
0
0 0
0
1
0 0
The number of incoming connections from clients to the database server . This number includes the current shell session. Consider the value of connections.available to add more context to this datum. 0
MongoDB
MongoDB::connection::connection rate 2
0
mongodb.connection.totalCreated 0 28 365 0 3
conn/s 1
0 0
0
1
0 0
Count of all incoming connections created to the server. This number includes connections that have since closed. 0
MongoDB
MongoDB::Wired Tiger Dirty Cache 2
0
mongodb.dirty-cache 0 28 365 0 3
B 0
0 0
0
1
0 0
0
MongoDB
MongoDB::FsyncLock 2
0
mongodb.fsync-locked 0 28 365 0 3
0
0 0
0
1
3 0
Tells the user if the MongoDB has fsync lock enabled, this prevents write operations and is turned on during some maintenance scripts. 0
MongoDB
MongoDB::globalLock::activeClients::readers 2
0
mongodb.globalLock.activeClients.readers 0 28 365 0 3
0
0 0
0
1
0 0
The number of the active client connections performing read operations. 0
MongoDB
MongoDB::globalLock::activeClients::total 2
0
mongodb.globalLock.activeClients.total 0 28 365 0 3
0
0 0
0
1
0 0
The total number of operations queued waiting for the lock (i.e., the sum of globalLock.currentQueue.readers and globalLock.currentQueue.writers). 0
MongoDB
MongoDB::globalLock::activeClients::writers 2
0
mongodb.globalLock.activeClients.writers 0 28 365 0 3
0
0 0
0
1
0 0
The number of active client connections performing write operations. 0
MongoDB
MongoDB::globalLock::currentQueue::readers 2
0
mongodb.globalLock.currentQueue.readers 0 28 365 0 3
0
0 0
0
1
0 0
0
MongoDB
MongoDB::globalLock::currentQueue::total 2
0
mongodb.globalLock.currentQueue.total 0 28 365 0 3
0
0 0
0
1
0 0
0
MongoDB
MongoDB::globalLock::currentQueue::writers 2
0
mongodb.globalLock.currentQueue.writers 0 28 365 0 3
0
0 0
0
1
0 0
0
MongoDB
MongoDB::globalLock::lock time 2
1
mongodb.globalLock.totalTime 0 28 365 0 3
s 0
0 0
0
0.001
0 0
The time, in microseconds, since the database last started and created the globalLock. This is roughly equivalent to total server uptime. 0
MongoDB
MongoDB::Hidden 2
0
mongodb.hidden 0 28 365 0 3
0
0 0
0
1
3 0
Tells the user if the MongoDB is hidden, this means the database can write operations from other members, but won't server reads 0
MongoDB
MongoDB::ismaster status 2
0
mongodb.ismaster 0 28 365 0 3
0
0 0
0
1
0 0
0
MongoDB
MongoDB ismaster status
MongoDB::memory::mappedWithJournal 2
1
mongodb.memory.mappedWithJournal 0 28 365 0 3
B 0
0 0
0
1048576
0 0
Only for the MMAPv1 storage engine.
The amount of mapped memory, in megabytes (MB), including the memory used for journaling. This value will always be twice the value of mem.mapped. This field is only included if journaling is enabled. 0
MongoDB
MongoDB::memory::virtual 2
1
mongodb.memory.virtual 0 28 365 0 3
B 0
0 0
0
1048576
0 0
0
MongoDB
MongoDB::network::bytesIn/s 2
0
mongodb.network.bytesIn 0 28 365 0 3
B/s 1
0 0
0
1
0 0
0
MongoDB
MongoDB::network::bytesOut/s 2
0
mongodb.network.bytesOut 0 28 365 0 3
B/s 1
0 0
0
1
0 0
0
MongoDB
MongoDB::network::request rate 2
0
mongodb.network.numRequests 0 28 365 0 3
1
0 0
0
1
0 0
0
MongoDB
MongoDB::ok status 2
0
mongodb.okstatus 0 28 365 0 3
0
0 0
0
1
0 0
0
MongoDB
MongoDB ok status
MongoDB::operation::command rate 2
0
mongodb.operation.command 0 28 365 0 3
ops/s 1
0 0
0
1
0 0
0
MongoDB
MongoDB::operation::delete rate 2
0
mongodb.operation.delete 0 28 365 0 3
ops/s 1
0 0
0
1
0 0
0
MongoDB
MongoDB::operation::getmore rate 2
0
mongodb.operation.getmore 0 28 365 0 3
ops/s 1
0 0
0
1
0 0
0
MongoDB
MongoDB::operation::insert rate 2
0
mongodb.operation.insert 0 28 365 0 3
ops/s 1
0 0
0
1
0 0
0
MongoDB
MongoDB::operation::query rate 2
0
mongodb.operation.query 0 28 365 0 3
ops/s 1
0 0
0
1
0 0
0
MongoDB
MongoDB::operation::update rate 2
0
mongodb.operation.update 0 28 365 0 3
ops/s 1
0 0
0
1
0 0
0
MongoDB
MongoDB::OplogLength 2
0
mongodb.oplog 0 28 365 0 0
s 0
0 0
0
1
0 0
Describes the number of seconds that exist in the Oplog 0
MongoDB
MongoDB::OplogSync 2
0
mongodb.oplog-sync 0 28 365 0 0
s 0
0 0
0
1
0 0
Shows the number of seconds between the last operation in the oplog, and the the current time. This should be fairly accurate on a database that has continuous operations, but if the database doesn't do anything it will fall behind. 0
MongoDB
MongoDB::page fault rate 2
0
mongodb.page.faults 0 28 365 0 3
1
0 0
0
1
0 0
0
MongoDB
MongoDB::Priority 2
0
mongodb.priority 0 28 365 0 0
0
0 0
0
1
0 0
The current priority of this database, 0 means it cannot be elected as master. This is used as part of the hiding process 0
MongoDB
MongoDB::storageEngine 2
0
mongodb.storageEngine 0 28 0 0 1
0
0 0
0
1
0 0
0
MongoDB
MongoDB::Wired Tiger Total Cache 2
0
mongodb.total-cache 0 28 365 0 3
B 0
0 0
0
1
0 0
0
MongoDB
MongoDB::uptime 2
0
mongodb.uptime 0 28 365 0 3
s 0
0 0
0
1
0 0
0
MongoDB
MongoDB::Wired Tiger Used Cache 2
0
mongodb.used-cache 0 28 365 0 3
B 0
0 0
0
1
0 0
0
MongoDB
MongoDB::Wired Tiger Used Cache % 15
0
mongodb.used-cache-p 30 90 365 0 3
% 0
0 0
0
1
(100 * last(mongodb.used-cache) / last(mongodb.total-cache))
0 0
0
MongoDB
MongoDB::version 2
0
mongodb.version 0 28 0 0 1
0
0 0
0
1
0 0
0
MongoDB
MongoDB::zabbix sender 7
0
mongodb.zabbix.sender 30 28 365 0 3
0
0 0
0
1
0 0
A script to send mongodb stats 0
MongoDB
MongoDB::number of process 7
0
proc.num[mongod] 60 28 365 0 3
0
0 0
0
1
0 0
0
MongoDB
MongoDB discovery 2
mongodb.discovery 0 0
0 0
0
0
0
28
MongoDB::{#MONGODBNAME}::average object size 2
0
mongodb.stats.avgObjSize[{#MONGODBNAME}] 0 28 365 0 3
B 0
0 0
0
1
0 0
The average size of each document in bytes. This is the dataSize divided by the number of documents. 0
MongoDB
MongoDB::{#MONGODBNAME}::collection count 2
0
mongodb.stats.collections[{#MONGODBNAME}] 0 28 365 0 3
0
0 0
0
1
0 0
Contains a count of the number of collections in that database. 0
MongoDB
MongoDB::{#MONGODBNAME}::data size 2
0
mongodb.stats.dataSize[{#MONGODBNAME}] 0 28 365 0 3
B 0
0 0
0
1
0 0
The total size in bytes of the uncompressed data held in this database. The scale argument affects this value. The dataSize will decrease when you remove documents. 0
MongoDB
MongoDB::{#MONGODBNAME}::file size 2
0
mongodb.stats.fileSize[{#MONGODBNAME}] 0 28 365 0 3
B 0
0 0
0
1
0 0
The total size in bytes of the data files that hold the database. This value includes preallocated space and the padding factor. The value of fileSize only reflects the size of the data files for the database and not the namespace file.
The scale argument affects this value. Only present when using the mmapv1 storage engine. 0
MongoDB
MongoDB::{#MONGODBNAME}::index count 2
0
mongodb.stats.indexes[{#MONGODBNAME}] 0 28 365 0 3
0
0 0
0
1
0 0
Contains a count of the total number of indexes across all collections in the database. 0
MongoDB
MongoDB::{#MONGODBNAME}::index size 2
0
mongodb.stats.indexSize[{#MONGODBNAME}] 0 28 365 0 3
B 0
0 0
0
1
0 0
The total size in bytes of all indexes created on this database. The scale arguments affects this value. 0
MongoDB
MongoDB::{#MONGODBNAME}::namespace size 2
1
mongodb.stats.nsSizeMB[{#MONGODBNAME}] 0 28 365 0 3
B 0
0 0
0
1048576
0 0
The total size of the namespace files (i.e. that end with .ns) for this database. You cannot change the size of the namespace file after creating a database, but you can change the default size for all new namespace files with the nsSize runtime option.
Only present when using the mmapv1 storage engine. 0
MongoDB
MongoDB::{#MONGODBNAME}::extent count 2
0
mongodb.stats.numExtents[{#MONGODBNAME}] 0 28 365 0 3
0
0 0
0
1
0 0
Contains a count of the number of extents in the database across all collections. 0
MongoDB
MongoDB::{#MONGODBNAME}::object count 2
0
mongodb.stats.objects[{#MONGODBNAME}] 0 28 365 0 3
0
0 0
0
1
0 0
Contains a count of the number of objects (i.e. documents) in the database across all collections. 0
MongoDB
MongoDB::{#MONGODBNAME}::ok status 2
0
mongodb.stats.ok[{#MONGODBNAME}] 0 28 365 0 3
0
0 0
0
1
0 0
0
MongoDB
MongoDB ok status
MongoDB::{#MONGODBNAME}::storage size 2
0
mongodb.stats.storageSize[{#MONGODBNAME}] 0 28 365 0 3
B 0
0 0
0
1
0 0
The total amount of space in bytes allocated to collections in this database for document storage. The scale argument affects this value. The storageSize does not decrease as you remove or shrink documents. This value may be smaller than dataSize for databases using the WiredTiger storage engine with compression enabled. 0
MongoDB
{Template MongoDB:mongodb.stats.ok[{#MONGODBNAME}].count(#3,0)}=3 0
MongoDB::{#MONGODBNAME} is not OK 0
0 3
0 0
{#MONGODBNAME}::collection and extent count 900 200 0.0000 100.0000 1 1 0 1 0 0.0000 0.0000 0 0 0 0
0 0 1A7C11 0 7 0
Template MongoDB mongodb.stats.collections[{#MONGODBNAME}]
1 0 F63100 0 7 0
Template MongoDB mongodb.stats.numExtents[{#MONGODBNAME}]
{#MONGODBNAME}::db size 900 200 0.0000 100.0000 1 1 0 1 0 0.0000 0.0000 0 0 0 0
0 0 1A7C11 0 7 0
Template MongoDB mongodb.stats.dataSize[{#MONGODBNAME}]
1 0 F63100 0 7 0
Template MongoDB mongodb.stats.fileSize[{#MONGODBNAME}]
2 0 2774A4 0 7 0
Template MongoDB mongodb.stats.nsSizeMB[{#MONGODBNAME}]
3 0 EE00EE 0 7 0
Template MongoDB mongodb.stats.storageSize[{#MONGODBNAME}]
{#MONGODBNAME}::indexes stats 900 200 0.0000 100.0000 1 1 0 1 0 0.0000 0.0000 0 0 0 0
0 0 1A7C11 1 7 0
Template MongoDB mongodb.stats.indexSize[{#MONGODBNAME}]
1 0 F63100 0 7 0
Template MongoDB mongodb.stats.indexes[{#MONGODBNAME}]
{#MONGODBNAME}::objects stats 900 200 0.0000 100.0000 1 1 0 1 0 0.0000 0.0000 0 0 0 0
0 0 1A7C11 1 7 0
Template MongoDB mongodb.stats.avgObjSize[{#MONGODBNAME}]
1 0 F63100 0 7 0
Template MongoDB mongodb.stats.objects[{#MONGODBNAME}]
{$PAGE_FAULT_TH_WARN} 1
MongoDB::db stats 1 4
20 400 80 0 0 1 1 0 0 0 0
0 0
{#MONGODBNAME}::db size Template MongoDB
3
20 400 80 0 1 1 1 0 0 0 0
0 0
{#MONGODBNAME}::indexes stats Template MongoDB
3
20 400 80 0 2 1 1 0 0 0 0
0 0
{#MONGODBNAME}::objects stats Template MongoDB
3
20 400 80 0 3 1 1 0 0 0 0
0 0
{#MONGODBNAME}::collection and extent count Template MongoDB
3
MongoDB::server status 2 4
0 500 100 0 0 1 1 0 0 0 0
0 0
MongoDB::connections Template MongoDB
3
0 500 100 1 0 1 1 0 0 0 0
0 0
MongoDB::memory Template MongoDB
3
0 500 100 0 1 1 1 0 0 0 0
0 0
MongoDB::network Template MongoDB
3
0 500 100 1 1 1 1 0 0 0 0
0 0
MongoDB::page faults Template MongoDB
3
0 500 100 0 2 1 1 0 0 0 0
0 0
MongoDB::operations Template MongoDB
3
0 500 100 0 3 1 1 0 0 0 0
0 0
MongoDB::global lock::current queue Template MongoDB
3
0 500 100 1 3 1 1 0 0 0 0
0 0
MongoDB::global lock::active clients Template MongoDB
3
{Template MongoDB:mongodb.fsync-locked.last()}=1 and {Template MongoDB:mongodb.hidden.last()}=1 and {Template MongoDB:mongodb.priority.last()}=0 0
Locked, hidden and priority 0 on {HOST.NAME} 0
0 2 The database is locked, hidden and priority set to 0 0 0
{Template MongoDB:mongodb.fsync-locked.last()}=1 and {Template MongoDB:mongodb.hidden.last()}=1 and {Template MongoDB:mongodb.priority.last()}=1 0
Locked, hidden and priority 1 on {HOST.NAME} 0
0 4 The database is locked, hidden and priority set to 1 0 0
{Template MongoDB:mongodb.fsync-locked.last()}=1 and {Template MongoDB:mongodb.hidden.last()}=0 and {Template MongoDB:mongodb.priority.last()}=0 0
Locked, not hidden and priority 0 on {HOST.NAME} 0
0 4 The database is locked, hidden and priority set to 0 0 0
{Template MongoDB:mongodb.fsync-locked.last()}=1 and {Template MongoDB:mongodb.hidden.last()}=0 and {Template MongoDB:mongodb.priority.last()}=1 0
Locked, not hidden and priority 1 on {HOST.NAME} 0
0 4 The database is locked, not hidden and priority set to 1 0 0
{Template MongoDB:mongodb.oplog.last()};259200 1 {Template MongoDB:mongodb.oplog.last()};259320 MongoDB Oplog length 3 days on {HOST.NAME} 0
0 4
0 0
{Template MongoDB:mongodb.oplog.last()};604800 and not {Template MongoDB:mongodb.oplog.last()};259200 1 {Template MongoDB:mongodb.oplog.last()};604920 MongoDB Oplog length 7 days on {HOST.NAME} 0
0 2
0 0
{Template MongoDB:mongodb.oplog-sync.last()};=60 and not {Template MongoDB:mongodb.oplog-sync.last()};=300 1 {Template MongoDB:mongodb.oplog-sync.last()};30 MongoDB Oplog Sync 1 minute on {HOST.NAME} 0
0 2
0 0
{Template MongoDB:mongodb.oplog-sync.last()};=300 1 {Template MongoDB:mongodb.oplog-sync.last()};240 MongoDB Oplog Sync 5 minute on {HOST.NAME} 0
0 4
0 0
{Template MongoDB:proc.num[mongod].count(#3,0)}=3 0
MongoDB process is not running on {HOST.NAME} 0
0 4
0 0
{Template MongoDB:mongodb.okstatus.count(#3,0)}=3 0
MongoDB server status is not OK 0
0 3
0 0
{Template MongoDB:mongodb.used-cache-p.last()};=90 and {Template MongoDB:mongodb.used-cache-p.last()};95 0
MongoDB Wired Tiger Used cache 90% on {HOST.NAME} 0
0 2
0 0
{Template MongoDB:mongodb.used-cache-p.last()};=95 0
MongoDB Wired Tiger Used cache 95% on {HOST.NAME} 0
0 4
0 0
{Template MongoDB:mongodb.fsync-locked.last()}=0 and {Template MongoDB:mongodb.hidden.last()}=1 and {Template MongoDB:mongodb.priority.last()}=0 0
Not locked, but is hidden and priority 0 on {HOST.NAME} 0
0 2 The database is not locked, but is hidden and priority set to 0 0 0
{Template MongoDB:mongodb.fsync-locked.last()}=0 and {Template MongoDB:mongodb.hidden.last()}=1 and {Template MongoDB:mongodb.priority.last()}=1 0
Not locked, is hidden and priority 1 on {HOST.NAME} 0
0 4 The database is not locked, is hidden and priority set to 1 0 0
{Template MongoDB:mongodb.fsync-locked.last()}=0 and {Template MongoDB:mongodb.hidden.last()}=0 and {Template MongoDB:mongodb.priority.last()}=0 0
Not locked or hidden, but priority 0 on {HOST.NAME} 0
0 2 The database is not locked or hidden, but priority set to 0 0 0
{Template MongoDB:mongodb.page.faults.min(#3)};{$PAGE_FAULT_TH_WARN} 0
Page faults detected on {HOST.NAME} (LV={ITEM.VALUE}) 0
0 2
0 0
MongoDB::asserts 900 200 0.0000 100.0000 1 1 0 1 0 0.0000 0.0000 0 0 0 0
0 0 1A7C11 0 7 0
Template MongoDB mongodb.asserts.msg
1 0 F63100 0 7 0
Template MongoDB mongodb.asserts.regular
2 0 2774A4 0 7 0
Template MongoDB mongodb.asserts.rollovers
3 0 A54F10 0 7 0
Template MongoDB mongodb.asserts.user
4 0 FC6EA3 0 7 0
Template MongoDB mongodb.asserts.warning
MongoDB::connections 900 200 0.0000 100.0000 1 1 0 1 0 0.0000 0.0000 0 0 0 0
0 4 1A7C11 0 7 0
Template MongoDB mongodb.connection.available
1 5 F63100 0 7 0
Template MongoDB mongodb.connection.current
MongoDB::global lock::active clients 900 200 0.0000 100.0000 1 1 0 1 0 0.0000 0.0000 0 0 0 0
0 0 F63100 0 7 0
Template MongoDB mongodb.globalLock.activeClients.total
1 0 1A7C11 0 7 0
Template MongoDB mongodb.globalLock.activeClients.readers
2 0 2774A4 0 7 0
Template MongoDB mongodb.globalLock.activeClients.writers
MongoDB::global lock::current queue 900 200 0.0000 100.0000 1 1 0 1 0 0.0000 0.0000 0 0 0 0
0 0 F63100 0 7 0
Template MongoDB mongodb.globalLock.currentQueue.total
1 0 1A7C11 0 7 0
Template MongoDB mongodb.globalLock.currentQueue.readers
2 0 2774A4 0 7 0
Template MongoDB mongodb.globalLock.currentQueue.writers
MongoDB::memory 900 200 0.0000 100.0000 1 1 0 1 0 0.0000 0.0000 0 0 0 0
0 0 2774A4 0 7 0
Template MongoDB mongodb.memory.virtual
1 0 FC6EA3 0 7 0
Template MongoDB mongodb.memory.mappedWithJournal
2 0 1A7C11 0 7 0
Template MongoDB mongodb.used-cache
MongoDB::network 900 200 0.0000 100.0000 1 1 0 1 0 0.0000 0.0000 0 0 0 0
0 0 1A7C11 0 7 0
Template MongoDB mongodb.network.bytesIn
1 0 F63100 0 7 0
Template MongoDB mongodb.network.bytesOut
2 0 2774A4 1 7 0
Template MongoDB mongodb.network.numRequests
MongoDB::operations 900 200 0.0000 100.0000 1 1 0 1 0 0.0000 0.0000 0 0 0 0
0 0 1A7C11 0 7 0
Template MongoDB mongodb.operation.command
1 0 F63100 0 7 0
Template MongoDB mongodb.operation.delete
2 0 2774A4 0 7 0
Template MongoDB mongodb.operation.getmore
3 0 A54F10 0 7 0
Template MongoDB mongodb.operation.insert
4 0 FC6EA3 0 7 0
Template MongoDB mongodb.operation.query
5 0 6C59DC 0 7 0
Template MongoDB mongodb.operation.update
MongoDB::OplogLength 900 200 0.0000 100.0000 1 1 0 1 0 0.0000 0.0000 0 0 0 0
0 0 1A7C11 0 2 0
Template MongoDB mongodb.oplog
MongoDB::OplogSync 900 200 0.0000 100.0000 1 1 0 1 0 0.0000 0.0000 0 0 0 0
0 0 1A7C11 0 2 0
Template MongoDB mongodb.oplog-sync
MongoDB::page faults 900 200 0.0000 100.0000 1 1 0 1 0 0.0000 0.0000 0 0 0 0
0 0 DD0000 0 7 0
Template MongoDB mongodb.page.faults
Wired Tiger Memory Usage 900 200 0.0000 100.0000 1 1 0 1 0 0.0000 0.0000 0 0 0 0
0 0 1A7C11 0 2 0
Template MongoDB mongodb.total-cache
1 0 F63100 0 2 0
Template MongoDB mongodb.used-cache
2 0 2774A4 0 2 0
Template MongoDB mongodb.dirty-cache
3 0 A54F10 1 2 0
Template MongoDB mongodb.used-cache-p
MongoDB ismaster status
0 False
1 True
MongoDB ok status
0 False
1 True
zabbix_config: # mongodb stats UserParameter=mongodb.zabbix.sender, /usr/local/zabbix/scripts/mongodb-stats.sh 注释: python脚本中引用的Module pymongo 3.6版本,注意不同版本可能引发的方法变更 |
CopyRight 2018-2019 实验室设备网 版权所有 |